﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PasswordEdit.aspx.cs" Inherits="ukeasbjWeb.PasswordEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
		<!-- 可修改区域：标题 Begin -->
		<!-- 可修改区域：标题 End -->
        <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
		<%    
			Response.WriteFile ("HeadComm.inc"); 
		%>    
</head>
<body id = "PasswordEdit" vlink="#000000" link="#000000" bgcolor="#26952c">
		<table id="Tab_Frame" border="0" cellpadding="0" cellspacing="0" width="98%" align="center">
			<tr> <!-- 标志图片区Top -->
				<td align="left" bgcolor="white" height="4"><img alt="idp诺思留学" src="./idp-nuosi-logo.jpg" align="middle">
					<!-- 菜单区Top -->
					<!-- 菜单区Bottom -->
				</td>
			</tr> <!-- 标志图片区Bottom -->
			<tr> <!-- 分割栏 -->
				<td height="8"><font face="宋体"></font></td>
			</tr>
			<tr align="center">
				<td>
					<!-- 可修改区域：正文区Top -->
					<form id="form_PasswordEdit" method="post" runat="server">
						<table id="Tab_Body" border="1"  bordercolor="#99cc66" width="100%">
							
								<tr valign="middle">
									<td align="right" width="35%">用户名:</td>
									<td align="left">
										<asp:Label id="TextLabel_Email" runat="server" width="150" /></td>
								</tr>
								<tr valign="middle">
									<td align="right" width="35%">旧密码:*</td>
									<td align="left">
										<asp:TextBox id="TextBox_OldPassword" runat="server" width="150" MaxLength="20" TextMode="Password" />
										<asp:RequiredFieldValidator id="RFV_OldPassword" Text="不能为空" runat="server" Display="Dynamic" ControlToValidate="TextBox_OldPassword" /></td>  
 

								</tr>
								<tr valign="middle">
									<td align="right" width="35%">新密码:*</td>
									<td align="left">
										<asp:TextBox id="TextBox_NewPassword" runat="server" width="150" MaxLength="20" TextMode="Password" />
										<asp:RegularExpressionValidator ID="REV_NewPassword" runat="server" ControlToValidate="TextBox_NewPassword" ErrorMessage="密码必须包含字符、数字！"
										 ValidationExpression="(([0-9]+[a-zA-Z]+[0-9]*)|([a-zA-Z]+[0-9]+[a-zA-Z]*))" ></asp:RegularExpressionValidator>
                                        
                                        <asp:RegularExpressionValidator ID="REV_NewPassword_2" runat="server" ControlToValidate="TextBox_NewPassword" ErrorMessage="密码的长度在6~18之间！"
										 ValidationExpression="^[a-zA-Z0-9]{6,18}$" ></asp:RegularExpressionValidator>

										<!--  (([0-9]+[a-zA-Z]+[0-9]*)|([a-zA-Z]+[0-9]+[a-zA-Z]*)) -->
										<!--  ^([a-zA-Z]+[0-9]+[0-9a-zA-Z]*)${6,16} 
										"^[a-zA-Z]\w{5,11}$"正确格式为：以字母开头，长度在6~12之间，只能包含字符、数字和下划线。 -->
										
										<asp:CompareValidator ControlToValidate="TextBox_OldPassword" Text="新旧密码相同" runat="server" Display="Dynamic"
											ID="CV_OldNewPassword" ControlToCompare="TextBox_NewPassword" Operator="NotEqual" /></td>
								</tr>
								<tr valign="middle">
									<td align="right" width="35%">重复新密码:*</td>
									<td align="left">
										<asp:TextBox id="TextBox_NewPasswordAgain" runat="server" width="150" 
                                            MaxLength="20" TextMode="Password"  />
										<asp:RegularExpressionValidator ID="REV_NewPasswordAgain" runat="server" ControlToValidate="TextBox_NewPasswordAgain" ErrorMessage="密码必须包含字符、数字！" 
										ValidationExpression="(([0-9]+[a-zA-Z]+[0-9]*)|([a-zA-Z]+[0-9]+[a-zA-Z]*))" ></asp:RegularExpressionValidator>

										<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox_NewPasswordAgain" ErrorMessage="密码的长度在6~18之间！" 
										ValidationExpression="^[a-zA-Z0-9]{6,18}$" ></asp:RegularExpressionValidator>

										
										</td>
								</tr>
								<tr valign="middle" align="center" bgcolor="#99cc66" >
									<td align="right" width="35%"></td>
									<td align="center"><font face="宋体" size="2">
											<asp:Button id="Bt_OK" Text="确认修改" runat="server" onclick="Bt_OK_Click" /></font></td>
								</tr>
								<tr valign="middle" align="center" bgcolor="#99cc66" >
									<td align="right" width="35%"></td>
									<td align="center"><font face="宋体" size="2"> 
									<input name="Bt_Reset" type="reset" id="Bt_Reset" value="取消修改"/></font></td>
					
			                    </tr>
		</table>
		</form>
		</td>
		</tr>
		<table align="center">
			<tr valign="middle" align="center" >
				<td colSpan="2">
					<asp:Label ID="Label_Msg" ForeColor="red" runat="server" EnableViewState="false"  Visible="false"/></td>
			</tr>
			<tr valign="middle" align="center" >
				<!-- 版权声明区Top -->
				<%    
				Response.WriteFile ("main_bottom.inc"); 
			%>
			</tr> <!-- 版权声明区Bottom -->
		</table>
</body>
</html>
